/**
 * @Title: BalanceRecordDao
 * @Package cn.com.yiqi.wsc.dao.balance
 * @Description: TODO
 * Copyright: Copyright (c) 2016
 * Company: 成都壹柒互动科技有限公司
 * @author 会员系统组-胥钰淋
 * @date 2017/3/3 11:37
 * @version V1.0
 */
package cn.com.yiqi.wsc.dao.balance;

import cn.com.artemis.framework.base.commons.persistence.CrudDao;
import cn.com.yiqi.wsc.Ro.BalanceRecordVO;
import cn.com.yiqi.wsc.dao.balance.criteria.BalanceCriteria;
import cn.com.yiqi.wsc.dao.balance.entity.BalanceRecordEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 *
 *@ClassName: BalanceRecordDao
 * @Description: TODO
 * @author 会员系统组-胥钰淋
 * @date 2017/3/3 11:37
 *
 */
@Repository
public interface BalanceRecordDao extends CrudDao<BalanceRecordEntity> {

    List<BalanceRecordEntity> selectList(@Param("customerId") Long customerId, @Param("type") Integer type, @Param("status") Integer status, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    List<BalanceRecordVO> balanceVoList(Integer userId);

    Long countBalanceToCash(@Param("customerId")  Long customerId ,@Param("type") Integer type );

    List<BalanceRecordEntity> selectBalanceDetail(BalanceCriteria balanceCriteria);
}
